﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LFM_Playlist_Builder
{
    class TrackInfo
    {
        private String EXTInfo = "";
        private String artist = "";
        private String trackName = "";
        private String fileName = "";
        private float score = 0;
        private Boolean found = false;
        private int index = 0;
        private int mode = 0;
        private int playCount = 9999; //Give a large value, to sort loved tracks in front of. If you've listened to a track more than 9999 times, you could probably afford to give it a rest.

        public TrackInfo(String iArtist, String iTrackName, String iFileName, String iEXTInfo, int iIndex, int iMode)
        {
            EXTInfo = iEXTInfo;
            artist = iArtist;
            trackName = iTrackName;
            fileName = iFileName;
            index = iIndex;
            mode = iMode;
        }

        //Sets the filename and EXTinfo to that of the appropriate library entry
        public void librarySet(TrackInfo theTrack)
        {
            EXTInfo = theTrack.EXTInfo;
            fileName = theTrack.fileName;
        }

        public String getArtist()
        {
            return artist;
        }

        public String getTrackName()
        {
            return trackName;
        }

        public String getFileName()
        {
            return fileName;
        }

        public String getEXTInfo()
        {
            return EXTInfo;
        }

        public Boolean isFound()
        {
            return found;
        }

        public float getScore()
        {
            return score;
        }

        public int getIndex()
        {
            return index;
        }

        public int getMode()
        {
            return mode;
        }

        public int getPlayCount()
        {
            return playCount;
        }

        public void setArtist(String iArtist)
        {
            artist = iArtist;
        }

        public void setTrackName(String iTrackName)
        {
            trackName = iTrackName;
        }

        public void setFileName(String iFileName)
        {
            fileName = iFileName;
        }

        public void setEXTInfo(String iEXTInfo)
        {
            EXTInfo = iEXTInfo;
        }

        public void setFound(Boolean iFound)
        {
            found = iFound;
        }

        public void setScore(float iScore)
        {
            score = iScore;
        }

        public void setIndex(int iIndex)
        {
            index = iIndex;
        }

        public void setMode(int iMode)
        {
            mode = iMode;
        }

        public void setPlayCount(int iPlayCount)
        {
            playCount = iPlayCount;
        }

    }
}
